<?php
declare (strict_types=1);
use Upload\Repository;
/**
 * @method static upload(array $files = []): bool|array
 * @method static getError(): string
 */
class Upload {
    /**
     * @param string $method
     * @param array $args
     * @return void
     * @throws Exception
     */
    public static function __callStatic(string $method, array $args)
    {
        $object = App::make(Repository::class);
        return $object->$method(...$args);
    }
}
